package com.ruoyi.statistics.controller;

import com.ruoyi.statistics.domain.BoardDist;
import com.ruoyi.statistics.domain.OverviewDTO;
import com.ruoyi.statistics.domain.QuShi;
import com.ruoyi.statistics.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/statistics/")
public class StatisticsController {
    @Autowired
    private StatisticsService statisticsService;
    @RequestMapping("quShi")
    public List<QuShi> quShi() {
        return statisticsService.getQuShi();
    }

    @RequestMapping("/getBoardDist")
    public List<BoardDist> getBoardDist() {
        return statisticsService.getBoardDist();
    }

    @RequestMapping("/getOverview")
    public OverviewDTO getOverview() {
        return statisticsService.getOverview();
    }


}
